import { createApp } from 'vue'
import index from '@/index.vue'
import store from '@/store'
import vant from '@/plugins/vant'
import '@/assets/css/vant.scss'

//环境变量
const env_ = import.meta.env
const env = {
  webUrl: env_.VITE_APP_WEB_URL,
  baseUrl: env_.VITE_APP_WEB_URL,
  apiUrl: env_.VITE_APP_API_URL,
}

const app = createApp(index)
//配置全局属性
app.config.globalProperties.env = env
app.config.globalProperties.isH5Edit = false
app.config.globalProperties.app = app

app.use(store)
app.use(vant)
app.mount('#app')
export default app